﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site.Master" CodeBehind="List.aspx.vb" Inherits="Veterans.List" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    </asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    
    <asp:Label ID="Lbl_Header" runat="server" CssClass="DetailsTitle" Text="Complete List"></asp:Label>
    
    <asp:GridView ID="GridView1" runat="server" DataSourceID="SqlDataSource1" 
        AutoGenerateColumns="False" Width="100%" AllowSorting="True" 
        CellPadding="4" ForeColor="#333333">
        <AlternatingRowStyle BackColor="White" />
        <Columns>
            <asp:HyperLinkField DataNavigateUrlFields="T_ID" 
                DataNavigateUrlFormatString="Details.aspx?D={0}" DataTextField="T_Title" 
                HeaderText="Subject" SortExpression="T_ID" >
            <ItemStyle HorizontalAlign="Left" VerticalAlign="Middle" />
            </asp:HyperLinkField>
            <asp:BoundField DataField="T_time" HeaderText="added Time" SortExpression="T_time" >
            <FooterStyle HorizontalAlign="Center" VerticalAlign="Middle" />
            <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
            </asp:BoundField>
            <asp:BoundField DataField="T_Writer" HeaderText="Added by" 
                SortExpression="T_Writer" >
            <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
            </asp:BoundField>
            <asp:ImageField DataImageUrlField="T_Picture" DataImageUrlFormatString="/Images/{0}" ControlStyle-CssClass="Thumbnail" HeaderText="Thumbnail" SortExpression="T_Picture">
                <ControlStyle CssClass="Thumbnail"></ControlStyle>
                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
            </asp:ImageField>
        </Columns>
        <EditRowStyle BackColor="#2461BF" />
        <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
        <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
        <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
        <RowStyle BackColor="#EFF3FB" />
        <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
        <SortedAscendingCellStyle BackColor="#F5F7FB" />
        <SortedAscendingHeaderStyle BackColor="#6D95E1" />
        <SortedDescendingCellStyle BackColor="#E9EBEF" />
        <SortedDescendingHeaderStyle BackColor="#4870BE" />
</asp:GridView>


<asp:SqlDataSource ID="SqlDataSource1" runat="server" 
    ConnectionString="<%$ ConnectionStrings:ConnectionString %>" 
    ProviderName="<%$ ConnectionStrings:ConnectionString.ProviderName %>" 
    
    SelectCommand="SELECT [T_ID], [T_Picture], [T_Title], [T_Text], [T_Writer], [T_time], [T_type] FROM [TBL_Topics] WHERE ([T_type] = ?)">
    <SelectParameters>
        <asp:QueryStringParameter Name="T_type" QueryStringField="Type" Type="String" />
    </SelectParameters>
</asp:SqlDataSource>




    


    <br />


    


</asp:Content>
